package com.ruoyi.health.report.service.impl;


import java.util.List;

import com.ruoyi.health.report.domain.HealthMetricDetail;
import com.ruoyi.health.report.mapper.HealthMetricDetailMapper;
import com.ruoyi.health.report.service.IHealthMetricDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 健康指标详细数据Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-25
 */
@Service
public class HealthMetricDetailServiceImpl implements IHealthMetricDetailService
{
    @Autowired
    private HealthMetricDetailMapper healthMetricDetailMapper;

    /**
     * 查询健康指标详细数据
     *
     * @param id 健康指标详细数据ID
     * @return 健康指标详细数据
     */
    @Override
    public HealthMetricDetail selectHealthMetricDetailById(Long id)
    {
        return healthMetricDetailMapper.selectHealthMetricDetailById(id);
    }

    /**
     * 查询健康指标详细数据列表
     *
     * @param healthMetricDetail 健康指标详细数据
     * @return 健康指标详细数据
     */
    @Override
    public List<HealthMetricDetail> selectHealthMetricDetailList(HealthMetricDetail healthMetricDetail)
    {
        return healthMetricDetailMapper.selectHealthMetricDetailList(healthMetricDetail);
    }

    /**
     * 新增健康指标详细数据
     *
     * @param healthMetricDetail 健康指标详细数据
     * @return 结果
     */
    @Override
    public int insertHealthMetricDetail(HealthMetricDetail healthMetricDetail)
    {
        return healthMetricDetailMapper.insertHealthMetricDetail(healthMetricDetail);
    }

    /**
     * 修改健康指标详细数据
     *
     * @param healthMetricDetail 健康指标详细数据
     * @return 结果
     */
    @Override
    public int updateHealthMetricDetail(HealthMetricDetail healthMetricDetail)
    {
        return healthMetricDetailMapper.updateHealthMetricDetail(healthMetricDetail);
    }

    /**
     * 批量删除健康指标详细数据
     *
     * @param ids 需要删除的健康指标详细数据ID
     * @return 结果
     */
    @Override
    public int deleteHealthMetricDetailByIds(Long[] ids)
    {
        return healthMetricDetailMapper.deleteHealthMetricDetailByIds(ids);
    }

    /**
     * 删除健康指标详细数据信息
     *
     * @param id 健康指标详细数据ID
     * @return 结果
     */
    @Override
    public int deleteHealthMetricDetailById(Long id)
    {
        return healthMetricDetailMapper.deleteHealthMetricDetailById(id);
    }
}
